﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CAPersonal.aspx.cs" Inherits="CAPersonal" %>

<%@ Register src="MenuSuperior.ascx" tagname="MenuSuperior" tagprefix="uc1" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="App_Themes/Aqua/default.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style3
        {
            width: 7px;
        }
        .style4
        {
            width: 76px;
        }
        .style5
        {
            width: 76px;
            height: 28px;
            color: #808080;
            text-align: left;
        }
        .style6
        {
            height: 28px;
        }
        .style8
        {
            width: 76px;
            color: #808080;
            text-align: left;
        }
        .style9
        {
            height: 28px;
            color: #808080;
            width: 121px;
            text-align: left;
        }
        .style10
        {
            width: 76px;
            color: #808080;
            height: 31px;
            text-align: left;
        }
        .style11
        {
            height: 31px;
        }
        .style12
        {
            color: Gray;
            height: 31px;
            width: 121px;
            text-align: left;
        }
        .style13
        {
            width: 87px;
        }
        .style14
        {
            width: 121px;
        }
        .style15
        {
            width: 121px;
            text-align: left;
        }
        .style16
        {
            text-align: left;
        }
        .style17
        {
            height: 28px;
            text-align: left;
        }
        .style18
        {
            height: 31px;
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnBuscar">
    <div align="center">
    
        <uc1:MenuSuperior ID="MenuSuperior1" runat="server" />
        <table cellspacing="1">
            <tr>
                <td align="center" bgcolor="White" class="style3">
                    <table align="center">
                        <tr>
                            <td>
                                <dxe:ASPxTextBox ID="txtBuscar" runat="server" NullText="Ingrese un texto" 
                                    ontextchanged="txtBuscar_TextChanged" 
                                    ToolTip="Se buscará por Legajo/ Tarjeta / Nombre / Documento" 
                                    Width="170px">
                                    <ValidationSettings Display="Dynamic" ErrorText="Debe ingresar un valor" 
                                        ErrorTextPosition="Bottom" ValidationGroup="Buscar">
                                        <RequiredField IsRequired="True" />
                                    </ValidationSettings>
                                </dxe:ASPxTextBox>
                            </td>
                            <td>
                                <asp:ImageButton ID="btnBuscar" runat="server" Height="22px" 
                                    ImageUrl="~/images/lupa.gif" onclick="btnBuscar_Click1" ToolTip="Buscar" 
                                    CausesValidation="False" />
                            </td>
                            
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td align="center" bgcolor="White" class="style3">
                    <asp:FormView ID="fvPersonal" runat="server" DataSourceID="DSPersonal" 
                        ondatabound="fvPersonal_DataBound" 
                        onitemupdating="fvPersonal_ItemUpdating" 
                        oniteminserting="fvPersonal_ItemInserting" 
                        oniteminserted="fvPersonal_ItemInserted">
                        <EditItemTemplate>
                            <table cellpadding="2" cellspacing="2" class="style1">
                                <tr>
                                    <td class="style10">
                                        Legajo</td>
                                    <td class="style18" nowrap="nowrap">
                                        <asp:Label ID="lblLegajo" runat="server" Text='<%# Bind("NumeroLegajo") %>' />
                                    </td>
                                    <td nowrap="nowrap" class="style11">
                                        &nbsp;&nbsp;&nbsp; &nbsp;</td>
                                    <td class="style12">
                                        Sector</td>
                                    <td class="style18">
                                        <asp:DropDownList ID="ddlSector" runat="server" DataSourceID="dsSectores" 
                                            DataTextField="Descripcion" DataValueField="IdSector" 
                                            SelectedValue='<%# Bind("IdSector") %>'> 
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Apellido</td>
                                    <td nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblApellido" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Apellido") %>'></asp:Label>
                                        <asp:TextBox ID="ApellidoTextBox" runat="server" 
                                            Text='<%# Bind("Apellido") %>' onload="TextBox_Load" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="NombreTextBox" ErrorMessage="RequiredFieldValidator" 
                                            ToolTip="Debe ingresar un valor" ValidationGroup="EditarInsertar">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Tarjeta</td>
                                    <td class="style16">
                                        <asp:DropDownList ID="ddlTarjetas" runat="server" 
                                            DataSourceID="dsTarjetasDisponibles" DataTextField="Descripcion" 
                                            DataValueField="Numero" SelectedValue='<%# Bind("NumeroTarjeta") %>'>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Nombre</td>
                                    <td nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblNombre" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Nombre") %>'></asp:Label>
                                        <asp:TextBox ID="NombreTextBox" runat="server" Text='<%# Bind("Nombre") %>' 
                                            onload="TextBox_Load" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                            ControlToValidate="ApellidoTextBox" ErrorMessage="RequiredFieldValidator" 
                                            ToolTip="Debe ingresar un valor" ValidationGroup="EditarInsertar">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Estado</td>
                                    <td nowrap="nowrap" class="style16">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblEstado" runat="server" ForeColor='<%# Eval("EstadoColor") %>' 
                                                        Text='<%# Bind("EstadoString") %>' />
                                                    &nbsp;
                                                </td>
                                                     <td>
                                                         <dxe:ASPxButton ID="btnActivar" runat="server" 
                                                             CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                             CssPostfix="Office2003_Olive" Text="Activar" onclick="btnActivar_Click" 
                                                             Visible='<%# Eval("EstadoPuedeActivar") %>' 
                                                             ValidationGroup="EditarInsertar">
                                                         </dxe:ASPxButton>
                                                         <dxe:ASPxButton ID="btnInactivo" runat="server" 
                                                             CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                             CssPostfix="Office2003_Olive" Text="Inactivo" onclick="btnInactivo_Click" 
                                                             Visible='<%# Eval("EstadoPuedeInactivar") %>' 
                                                             ValidationGroup="EditarInsertar">
                                                         </dxe:ASPxButton>
                                                </td>
                                                <td class="style16">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Documento</td>
                                    <td nowrap="nowrap" class="style16">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td nowrap="nowrap">
                                                    <asp:Label ID="lblTipoDocumento" runat="server" ondatabinding="TextBox_Load" 
                                                        Text='<%# Eval("TipoDocumento") %>'></asp:Label>
                                                    <asp:Label ID="lblNumeroDocumento" runat="server" ondatabinding="TextBox_Load" 
                                                        Text='<%# Eval("DocumentoNumero") %>'></asp:Label>
                                                    <dxe:ASPxComboBox ID="TipoDocumentoCmb" runat="server" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" ImageFolder="~/App_Themes/Office2003Olive/{0}/" 
                                                        Value='<%# Bind("TipoDocumento") %>' ValueType="System.String" 
                                                        Width="80px" onload="TextBox_Load">
                                                        <Items>
                                                            <dxe:ListEditItem Text="DNI" Value="DNI" />
                                                            <dxe:ListEditItem Text="CEDULA" Value="CEDULA" />
                                                            <dxe:ListEditItem Text="LE" Value="LE" />
                                                            <dxe:ListEditItem Text="PASAPORTE" Value="PASAPORTE" />
                                                        </Items>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                    </dxe:ASPxComboBox>
                                                    
                                                </td>
                                                <td nowrap="nowrap" class="style13">
                                                    <asp:TextBox ID="DocumentoNumeroTextBox" runat="server" 
                                                        Text='<%# Bind("DocumentoNumero") %>' Width="70px" onload="TextBox_Load" />
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                        ControlToValidate="DocumentoNumeroTextBox" 
                                                        ErrorMessage="RequiredFieldValidator" ToolTip="Debe ingresar un valor" 
                                                        ValidationGroup="EditarInsertar">*</asp:RequiredFieldValidator>
                                                    </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Fecha Inicio</td>
                                    <td class="style16">
                                        <asp:TextBox ID="FechaInicioTextBox" runat="server" 
                                            Text='<%# Bind("FechaInicioString") %>' />
                                        <asp:CalendarExtender ID="FechaInicioTextBox_CalendarExtender" runat="server" 
                                            Format="dd/MM/yyyy" TargetControlID="FechaInicioTextBox">
                                        </asp:CalendarExtender>
                                        <asp:RangeValidator ID="rvFecha0" runat="server" 
                                            ControlToValidate="FechaInicioTextBox" 
                                            ErrorMessage="*" MaximumValue="01/01/2100" 
                                            MinimumValue="01/01/1900" Type="Date" 
                                            ToolTip="Debe ingresar una fecha válida" ValidationGroup="EditarInsertar"></asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                            ControlToValidate="FechaInicioTextBox" ErrorMessage="*" 
                                            ToolTip="Debe ingresar una fecha" ValidationGroup="EditarInsertar"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        CUIL</td>
                                    <td class="style17" nowrap="nowrap">
                                        <asp:Label ID="lblCUIL" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("CUIL") %>'></asp:Label>
                                        <asp:TextBox ID="CUILTextBox" runat="server" Text='<%# Bind("CUIL") %>' 
                                            onload="TextBox_Load" />
                                    </td>
                                    <td class="style6">
                                        </td>
                                    <td class="style9" nowrap="nowrap">
                                        Turno</td>
                                    <td class="style17">
                                        <asp:DropDownList ID="ddlTurno" runat="server" DataSourceID="dsTurnos" 
                                            DataTextField="Descripcion" DataValueField="IdTurno" 
                                            SelectedValue='<%# Bind("IdTurno") %>' AutoPostBack="True" 
                                            onselectedindexchanged="ddlTurno_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap" class="style8">
                                        Nacimiento</td>
                                    <td nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblFechaNacimiento" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("FechaNacimientoString") %>'></asp:Label>
                                        <asp:TextBox ID="FechaNacimientoTextBox" runat="server" 
                                            Text='<%# Bind("FechaNacimientoString") %>' onload="TextBox_Load" />
                                        <asp:CalendarExtender ID="FechaNacimientoTextBox_CalendarExtender" 
                                            runat="server" Format="dd/MM/yyyy" TargetControlID="FechaNacimientoTextBox">
                                        </asp:CalendarExtender>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Rotación inicio</td>
                                    <td class="style16">
                                        <%--</form>--%>
                                        <asp:DropDownList ID="ddlRotaciones" runat="server" 
                                            DataSourceID="dsHorariosTurno" DataTextField="Descripcion" 
                                            DataValueField="Orden">
                                        </asp:DropDownList>
                                        <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                            ControlToValidate="ddlRotaciones" ErrorMessage="*" 
                                            onservervalidate="CustomValidator1_ServerValidate" 
                                            ToolTip="Debe seleccionar una rotacion de un turno" ValidateEmptyText="True" 
                                            ValidationGroup="EditarInsertar"></asp:CustomValidator>
                                        <asp:ObjectDataSource ID="dsHorariosTurno" runat="server" 
                                            SelectMethod="ObtenerHorarioTurnos" 
                                            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2HorarioTurnoColeccion">
                                            <SelectParameters>
                                                <asp:Parameter DefaultValue="-1" Name="pIdTurno" Type="Int32" />
                                            </SelectParameters>
                                        </asp:ObjectDataSource>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Celular</td>
                                    <td nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblCelular" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Celular") %>'></asp:Label>
                                        <asp:TextBox ID="CelularTextBox" runat="server" Text='<%# Bind("Celular") %>' 
                                            onload="TextBox_Load" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td nowrap="nowrap" class="style15">
                                        Programado hasta</td>
                                    <td class="style16">
                                        <asp:Label ID="UltimaFechaProgramadaLabel" runat="server" 
                                            Text='<%# Eval("UltimaFechaProgramadaString") %>' 
                                            ToolTip="Fecha hasta la que se han programado los turnos" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Telefono</td>
                                    <td nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblTelefono" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Telefono") %>'></asp:Label>
                                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                                            Text='<%# Bind("Telefono") %>' onload="TextBox_Load" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Empleadora</td>
                                    <td class="style16">
                                        <asp:DropDownList ID="ddlEmpleadora" runat="server" DataSourceID="dsEmpresas" 
                                            DataTextField="Nombre" DataValueField="IdEmpresa" 
                                            SelectedValue='<%# Bind("IdEmpresa") %>'>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Localidad</td>
                                    <td style="margin-left: 160px" nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblLocalidad" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Localidad") %>'></asp:Label>
                                        <asp:TextBox ID="LocalidadTextBox" runat="server" 
                                            Text='<%# Bind("Localidad") %>' onload="TextBox_Load" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style15" nowrap="nowrap">
                                        Razón social</td>
                                    <td class="style16">
                                        <asp:DropDownList ID="ddlRazonesSociales" runat="server" 
                                            DataSourceID="dsRazonesSociales" DataTextField="Nombre" DataValueField="ID" 
                                            SelectedValue='<%# Bind("IdRazonSocial") %>'>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Provincia</td>
                                    <td style="margin-left: 160px" nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblProvincia" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Provincia") %>'></asp:Label>
                                        <asp:TextBox ID="ProvinciaTextBox" runat="server" 
                                            Text='<%# Bind("Provincia") %>' onload="TextBox_Load" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style14">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Pais</td>
                                    <td style="margin-left: 160px" nowrap="nowrap" class="style16">
                                        <asp:Label ID="lblPais" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Pais") %>'></asp:Label>
                                        <asp:TextBox ID="PaisTextBox" runat="server" Text='<%# Bind("Pais") %>' 
                                            onload="TextBox_Load" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style14">
                                        &nbsp;</td>
                                    <td>
                                        <asp:HiddenField ID="hfActivo" runat="server" Value='<%# Bind("Activo") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Direccion</td>
                                    <td colspan="4" style="margin-left: 160px; text-align: left;" nowrap="nowrap">
                                        <asp:Label ID="lblDireccion" runat="server" ondatabinding="TextBox_Load" 
                                            Text='<%# Eval("Direccion") %>'></asp:Label>
                                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                                            Text='<%# Bind("Direccion") %>' Width="450px" onprerender="TextBox_Load" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        &nbsp;</td>
                                    <td colspan="4" style="margin-left: 160px" nowrap="nowrap">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="margin-left: 160px" nowrap="nowrap">
                                        <table align="center">
                                            <tr>
                                                <td>
                                                    <dxe:ASPxButton ID="btnActualizar" runat="server" CommandName="Update" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Actualizar" 
                                                        ValidationGroup="EditarInsertar" onclick="btnActualizar_Click">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnCancelar" runat="server" CausesValidation="False" 
                                                        CommandName="Cancel" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Cancelar" 
                                                        ValidationGroup="EditarInsertar">
                                                    </dxe:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <asp:HiddenField ID="hfIdPersonal" runat="server" 
                                            Value='<%# Bind("IdPersonal") %>' />
                                        &nbsp;</td>
                                </tr>
                            </table>
&nbsp;
                        </EditItemTemplate>
                        <EmptyDataTemplate>
                            <table align="center" class="style1">
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="center" width="400">
                                        <asp:Label ID="Label1" runat="server" Text="Seleccione un legajo" Width="400px" 
                                            style="color: #808080"></asp:Label>
                                        </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </EmptyDataTemplate>
                        <InsertItemTemplate>
                            <table cellpadding="2" cellspacing="2" class="style1">
                                <tr>
                                    <td class="style10">
                                        Legajo</td>
                                    <td class="style11" nowrap="nowrap">
                                        <asp:TextBox ID="NumeroLegajoTextbox" runat="server" 
                                            Text='<%# Bind("NumeroLegajo") %>' />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                            ControlToValidate="NumeroLegajoTextbox" ErrorMessage="RequiredFieldValidator" 
                                            ToolTip="Debe ingresar un valor" Display="Dynamic">*</asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                            ControlToValidate="NumeroLegajoTextbox" ErrorMessage="*" 
                                            MaximumValue="999999999" MinimumValue="0" ToolTip="Debe ingresar un número" 
                                            Type="Integer" Display="Dynamic"></asp:RangeValidator>
                                        <br />
                                        <asp:CustomValidator ID="cvalLegajoUnico" runat="server" 
                                            ControlToValidate="NumeroLegajoTextbox" Display="Dynamic" 
                                            ErrorMessage="El legajo ya existe" 
                                            onservervalidate="cvalLegajoUnico_ServerValidate"></asp:CustomValidator>
                                    </td>
                                    <td class="style11" nowrap="nowrap">
                                        &nbsp;&nbsp;&nbsp; &nbsp;</td>
                                    <td class="style12">
                                        Sector</td>
                                    <td class="style11">
                                        <asp:DropDownList ID="ddlSector" runat="server" DataSourceID="dsSectores" 
                                            DataTextField="Descripcion" DataValueField="IdSector" 
                                            SelectedValue='<%# Bind("IdSector") %>' TabIndex="1">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Apellido</td>
                                    <td>
                                        <asp:TextBox ID="ApellidoTextBox" runat="server" 
                                            Text='<%# Bind("Apellido") %>' />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="NombreTextBox" ErrorMessage="RequiredFieldValidator" 
                                            ToolTip="Debe ingresar un valor">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Tarjeta</td>
                                    <td>
                                        <asp:DropDownList ID="ddlTarjetas" runat="server" 
                                            DataSourceID="dsTarjetasDisponibles" DataTextField="Descripcion" 
                                            DataValueField="Numero" SelectedValue='<%# Bind("NumeroTarjeta") %>' 
                                            TabIndex="1">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Nombre</td>
                                    <td>
                                        <asp:TextBox ID="NombreTextBox" runat="server" Text='<%# Bind("Nombre") %>' />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                            ControlToValidate="ApellidoTextBox" ErrorMessage="RequiredFieldValidator" 
                                            ToolTip="Debe ingresar un valor">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Estado</td>
                                    <td nowrap="nowrap">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblEstado" runat="server" ForeColor="#33CC33" Text="Activo" />
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Documento</td>
                                    <td>
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <dxe:ASPxComboBox ID="TipoDocumentoCmb" runat="server" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" ImageFolder="~/App_Themes/Office2003Olive/{0}/" 
                                                        Value='<%# Bind("TipoDocumento") %>' ValueType="System.String" Width="80px">
                                                        <Items>
                                                            <dxe:ListEditItem Text="DNI" Value="DNI" />
                                                            <dxe:ListEditItem Text="CEDULA" Value="CEDULA" />
                                                            <dxe:ListEditItem Text="LE" Value="LE" />
                                                            <dxe:ListEditItem Text="PASAPORTE" Value="PASAPORTE" />
                                                        </Items>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                    </dxe:ASPxComboBox>
                                                </td>
                                                <td nowrap="nowrap">
                                                    <asp:TextBox ID="DocumentoNumeroTextBox" runat="server" 
                                                        Text='<%# Bind("DocumentoNumero") %>' Width="70px" />
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                        ControlToValidate="DocumentoNumeroTextBox" 
                                                        ErrorMessage="RequiredFieldValidator" ToolTip="Debe ingresar un valor">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Fecha Inicio</td>
                                    <td>
                                        <asp:TextBox ID="FechaInicioTextBox" runat="server" 
                                            Text='<%# Bind("FechaInicioString") %>' TabIndex="1" />
                                        <asp:CalendarExtender ID="FechaInicioTextBox_CalendarExtender" runat="server" 
                                            Format="dd/MM/yyyy" TargetControlID="FechaInicioTextBox">
                                        </asp:CalendarExtender>
                                        <asp:RangeValidator ID="rvFecha0" runat="server" 
                                            ControlToValidate="FechaInicioTextBox" ErrorMessage="*" 
                                            MaximumValue="01/01/2100" MinimumValue="01/01/1900" 
                                            ToolTip="Debe ingresar una fecha válida" Type="Date"></asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                            ControlToValidate="FechaInicioTextBox" ErrorMessage="*" 
                                            ToolTip="Debe ingresar una fecha"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style5">
                                        CUIL</td>
                                    <td class="style6">
                                        <asp:TextBox ID="CUILTextBox" runat="server" Text='<%# Bind("CUIL") %>' />
                                    </td>
                                    <td class="style6">
                                    </td>
                                    <td class="style9">
                                        Turno</td>
                                    <td class="style6">
                                        <asp:DropDownList ID="ddlTurno" runat="server" AutoPostBack="True" 
                                            DataSourceID="dsTurnos" DataTextField="Descripcion" DataValueField="IdTurno" 
                                            onselectedindexchanged="ddlTurno_SelectedIndexChanged" 
                                            SelectedValue='<%# Bind("IdTurno") %>' TabIndex="1">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8" nowrap="nowrap">
                                        Nacimiento</td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="FechaNacimientoTextBox" runat="server" 
                                            Text='<%# Bind("FechaNacimientoString") %>' />
                                        <asp:CalendarExtender ID="FechaNacimientoTextBox_CalendarExtender" 
                                            runat="server" Format="dd/MM/yyyy" TargetControlID="FechaNacimientoTextBox">
                                        </asp:CalendarExtender>
                                        <asp:RangeValidator ID="rvFecha" runat="server" 
                                            ControlToValidate="FechaNacimientoTextBox" MaximumValue="01/01/2100" 
                                            MinimumValue="01/01/1900" ToolTip="Debe ingresar una fecha válida" Type="Date">*</asp:RangeValidator>
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Rotación inicio</td>
                                    <td nowrap="nowrap">
                                        </form>
                                        <asp:DropDownList ID="ddlRotaciones" runat="server" 
                                            DataSourceID="dsHorariosTurno" DataTextField="Descripcion" 
                                            DataValueField="Orden" TabIndex="1">
                                        </asp:DropDownList>
                                        <asp:CustomValidator ID="CustomValidator1" runat="server" 
                                            ControlToValidate="ddlRotaciones" ErrorMessage="*" 
                                            onservervalidate="CustomValidator1_ServerValidate" 
                                            ToolTip="Debe seleccionar una rotacion de un turno" ValidateEmptyText="True"></asp:CustomValidator>
                                        <asp:ObjectDataSource ID="dsHorariosTurno" runat="server" 
                                            SelectMethod="ObtenerHorarioTurnos" 
                                            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2HorarioTurnoColeccion">
                                            <SelectParameters>
                                                <asp:Parameter DefaultValue="-1" Name="pIdTurno" Type="Int32" />
                                            </SelectParameters>
                                        </asp:ObjectDataSource>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Celular</td>
                                    <td>
                                        <asp:TextBox ID="CelularTextBox" runat="server" Text='<%# Bind("Celular") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange" nowrap="nowrap">
                                        Programado hasta</td>
                                    <td>
                                        <asp:Label ID="UltimaFechaProgramadaLabel" runat="server" 
                                            Text='<%# Eval("UltimaFechaProgramadaString") %>' 
                                            ToolTip="Fecha hasta la que se han programado los turnos" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Telefono</td>
                                    <td>
                                        <asp:TextBox ID="TelefonoTextBox" runat="server" 
                                            Text='<%# Bind("Telefono") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        Empleadora</td>
                                    <td>
                                        <asp:DropDownList ID="ddlEmpleadora" runat="server" DataSourceID="dsEmpresas" 
                                            DataTextField="Nombre" DataValueField="IdEmpresa" 
                                            SelectedValue='<%# Bind("IdEmpresa") %>'>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Localidad</td>
                                    <td style="margin-left: 160px">
                                        <asp:TextBox ID="LocalidadTextBox" runat="server" 
                                            Text='<%# Bind("Localidad") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        Razón social</td>
                                    <td>
                                        <asp:DropDownList ID="ddlRazonesSociales" runat="server" 
                                            DataSourceID="dsRazonesSociales" DataTextField="Nombre" DataValueField="ID" 
                                            SelectedValue='<%# Bind("IdRazonSocial") %>'>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Provincia</td>
                                    <td style="margin-left: 160px">
                                        <asp:TextBox ID="ProvinciaTextBox" runat="server" 
                                            Text='<%# Bind("Provincia") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Pais</td>
                                    <td style="margin-left: 160px">
                                        <asp:TextBox ID="PaisTextBox" runat="server" Text='<%# Bind("Pais") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style8">
                                        Direccion</td>
                                    <td colspan="4" style="margin-left: 160px">
                                        <asp:TextBox ID="DireccionTextBox" runat="server" 
                                            Text='<%# Bind("Direccion") %>' Width="450px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style4">
                                        &nbsp;</td>
                                    <td colspan="4" style="margin-left: 160px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="5" nowrap="nowrap" style="margin-left: 160px">
                                        <table align="center">
                                            <tr>
                                                <td>
                                                    <dxe:ASPxButton ID="btnInsertar" runat="server" CommandName="Insert" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Insertar">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnCancelar" runat="server" CausesValidation="False" 
                                                        CommandName="Cancel" CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Cancelar">
                                                    </dxe:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <table class="style1" cellpadding="2" cellspacing="2">
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Legajo</td>
                                    <td>
                                        <asp:Label ID="NumeroLegajoLabel" runat="server" 
                                            Text='<%# Bind("NumeroLegajo") %>' />
                                    </td>
                                    <td nowrap="nowrap">
                                        &nbsp;&nbsp;&nbsp; &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Sector</td>
                                    <td>
                                        <asp:Label ID="SectorLabel" runat="server" Text='<%# Eval("SectorString") %>' 
                                            Width="200px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Apellido</td>
                                    <td>
                                        <asp:Label ID="ApellidoLabel" runat="server" Text='<%# Bind("Apellido") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Tarjeta</td>
                                    <td>
                                        <asp:Label ID="NumeroTarjetaLabel" runat="server" 
                                            Text='<%# Bind("NumeroTarjetaString") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Nombre</td>
                                    <td>
                                        <asp:Label ID="NombreLabel" runat="server" Text='<%# Bind("Nombre") %>' 
                                            Width="200px" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Estado</td>
                                    <td>
                                        <asp:Label ID="lblEstado" runat="server" ForeColor='<%# Eval("EstadoColor") %>' 
                                            Text='<%# Bind("EstadoString") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Documento</td>
                                    <td>
                                        <asp:Label ID="TipoDocumentoLabel" runat="server" 
                                            Text='<%# Bind("TipoDocumento") %>' />
                                        &nbsp;
                                        <asp:Label ID="DocumentoNumeroLabel" runat="server" 
                                            Text='<%# Bind("DocumentoNumero") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Fecha Inicio</td>
                                    <td>
                                        <asp:Label ID="FechaInicioLabel" runat="server" 
                                            Text='<%# Bind("FechaInicioString") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        CUIL</td>
                                    <td>
                                        <asp:Label ID="CUILLabel" runat="server" Text='<%# Bind("CUIL") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Turno</td>
                                    <td nowrap="nowrap">
                                        <asp:Label ID="IdTurnoLabel" runat="server" 
                                            Text='<%# Bind("TurnoNombreString") %>' Width="250px" />
                                    </td>
                                </tr>
                                <tr>
                                    <td nowrap="nowrap" class="dxncEmptyData_Soft_Orange">
                                        Nacimiento</td>
                                    <td>
                                        <asp:Label ID="FechaNacimientoLabel" runat="server" 
                                            Text='<%# Bind("FechaNacimientoString") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Rotación inicio</td>
                                    <td>
                                        <asp:Label ID="TurnoInicioLabel" runat="server" 
                                            Text='<%# Bind("TurnoInicioNombreString") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Celular</td>
                                    <td>
                                        <asp:Label ID="CelularLabel" runat="server" Text='<%# Bind("Celular") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td nowrap="nowrap" class="dxncEmptyData_Soft_Orange">
                                        Programado hasta</td>
                                    <td>
                                        <asp:Label ID="UltimaFechaProgramadaLabel" runat="server" 
                                            Text='<%# Bind("UltimaFechaProgramadaString") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Telefono</td>
                                    <td>
                                        <asp:Label ID="TelefonoLabel" runat="server" Text='<%# Bind("Telefono") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Empleadora</td>
                                    <td>
                                        <asp:Label ID="EmpleadoraLabel" runat="server" 
                                            Text='<%# Bind("EmpresaNombre") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Localidad</td>
                                    <td style="margin-left: 160px">
                                        <asp:Label ID="LocalidadLabel" runat="server" Text='<%# Bind("Localidad") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        Razón social</td>
                                    <td>
                                        <asp:Label ID="RazonSocialLabel" runat="server" 
                                            Text='<%# Bind("RazonSocialNombre") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Provincia</td>
                                    <td style="margin-left: 160px">
                                        <asp:Label ID="ProvinciaLabel" runat="server" Text='<%# Bind("Provincia") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange">
                                        Pais</td>
                                    <td style="margin-left: 160px">
                                        <asp:Label ID="PaisLabel" runat="server" Text='<%# Bind("Pais") %>' />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="dxncEmptyData_Soft_Orange" >
                                        Direccion</td>
                                    <td style="margin-left: 160px" colspan="4">
                                        <asp:Label ID="DireccionLabel" runat="server" Text='<%# Bind("Direccion") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                    <td colspan="4" style="margin-left: 160px">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="5" align="center">
                                        <table>
                                            <tr>
                                                <td>
                                                    <dxe:ASPxButton ID="btnEditar" runat="server" CommandName="Edit" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Editar">
                                                    </dxe:ASPxButton>
                                                </td>
                                                <td>
                                                    <dxe:ASPxButton ID="btnNuevo" runat="server" CommandName="New" 
                                                        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                        CssPostfix="Office2003_Olive" Text="Nuevo" ToolTip="Crea un nuevo legajo" 
                                                        onload="TextBox_Load">
                                                    </dxe:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
        </table>
        <br />
        <dxpc:ASPxPopupControl ID="popBusqueda" runat="server" 
            AutoUpdatePosition="True" 
            CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
            CssPostfix="Office2003_Olive" EnableHotTrack="False" 
            HeaderText="Búsqueda de personal" 
            ImageFolder="~/App_Themes/Office2003Olive/{0}/" Modal="True" 
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
            <CloseButtonImage Height="12px" Width="13px" />
            <SizeGripImage Height="16px" Width="16px" />
            <HeaderStyle>
            <Paddings PaddingRight="6px" />
            </HeaderStyle>
            <ContentCollection>
<dxpc:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
    <dxwgv:ASPxGridView ID="gvPersonalColeccion" runat="server" 
        AutoGenerateColumns="False" 
        CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
        CssPostfix="Office2003_Olive" DataSourceID="dsPersonalBusqueda" 
        KeyFieldName="NumeroLegajo">
        <Columns>
            <dxwgv:GridViewDataTextColumn Caption="Legajo" FieldName="NumeroLegajo" 
                ShowInCustomizationForm="True" VisibleIndex="0">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn 
                ShowInCustomizationForm="True" VisibleIndex="1" 
                Caption="Apellido y nombre">
                <DataItemTemplate>
                    <a ID="clickElement" href="CAPersonal.aspx?ID=<%# Container.KeyValue%>" 
                        target="_self"><%# Eval("ApellidoYNombre")%></a>
                </DataItemTemplate>
                <CellStyle Wrap="False">
                </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Documento" FieldName="DocumentoNumero" 
                ShowInCustomizationForm="True" VisibleIndex="2">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Tarjeta" FieldName="NumeroTarjetaString" 
                ReadOnly="True" ShowInCustomizationForm="True" VisibleIndex="3">
                <CellStyle Wrap="False">
                </CellStyle>
            </dxwgv:GridViewDataTextColumn>

            <dxwgv:GridViewDataTextColumn VisibleIndex="3" Caption="Sector" 
                FieldName="SectorString" ReadOnly="True">
                <CellStyle Wrap="False">
                </CellStyle>
            </dxwgv:GridViewDataTextColumn>

            <dxwgv:GridViewDataTextColumn Caption="Programado hasta" 
                FieldName="UltimaFechaProgramadaString" ReadOnly="True" 
                ShowInCustomizationForm="True" VisibleIndex="4">
            </dxwgv:GridViewDataTextColumn>

        </Columns>
        <SettingsBehavior AllowFocusedRow="True" EnableRowHotTrack="True" />
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Images ImageFolder="~/App_Themes/Office2003Olive/{0}/">
            <CollapsedButton Height="12px" 
                Url="~/App_Themes/Office2003Olive/GridView/gvCollapsedButton.png" 
                Width="11px" />
            <ExpandedButton Height="12px" 
                Url="~/App_Themes/Office2003Olive/GridView/gvExpandedButton.png" Width="11px" />
            <DetailCollapsedButton Height="12px" 
                Url="~/App_Themes/Office2003Olive/GridView/gvCollapsedButton.png" 
                Width="11px" />
            <DetailExpandedButton Height="12px" 
                Url="~/App_Themes/Office2003Olive/GridView/gvExpandedButton.png" Width="11px" />
            <FilterRowButton Height="13px" Width="13px" />
        </Images>
        <Styles CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
            CssPostfix="Office2003_Olive">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="10px">
            </LoadingPanel>
        </Styles>
        <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
        </StylesEditors>
        <Templates>
            <EmptyDataRow>
                <br />
                <span class="dxncEmptyData_Soft_Orange">No se encontraron registros</span><br />
            </EmptyDataRow>
        </Templates>
    </dxwgv:ASPxGridView>
    <asp:ObjectDataSource ID="dsPersonalBusqueda" runat="server" 
        SelectMethod="BuscarPersonaPorValor" 
        TypeName="RC.ControlAcceso.ObjetosNegocio.CA2Personal">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtBuscar" Name="pValor" PropertyName="Text" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
                </dxpc:PopupControlContentControl>
</ContentCollection>
        </dxpc:ASPxPopupControl>
        <asp:ObjectDataSource ID="DSPersonal" runat="server" 
            SelectMethod="ObtenerPersonalPorNumeroDeLegajo" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2Personal" 
            OldValuesParameterFormatString="original_{0}" 
            DataObjectTypeName="RC.ControlAcceso.ObjetosNegocio.CA2Personal" 
            InsertMethod="Insertar" UpdateMethod="Actualizar">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="-1" Name="pNumeroDeLegajo" 
                    QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsTurnos" runat="server" SelectMethod="ObtenerTurnos" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2TurnoColeccion" 
            onselected="dsTurnos_Selected">
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsSectores" runat="server" 
            SelectMethod="ObtenerTodosLosSectoresConNoAsignado" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2SectorColeccion" 
            OldValuesParameterFormatString="original_{0}" 
            onselected="dsSectores_Selected">
        </asp:ObjectDataSource>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:ObjectDataSource ID="dsTarjetasDisponibles" runat="server" 
            onselected="dsTarjetasDisponibles_Selected" 
            SelectMethod="ObtenerTarjetasDisponibles" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2Tarjeta">
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsEmpresas" runat="server" 
            onselected="dsEmpresas_Selected" SelectMethod="ObtenerTodos" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2Empresa">
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="dsRazonesSociales" runat="server" 
            onselected="dsRazonesSociales_Selected" SelectMethod="ObtenerTodos" 
            TypeName="RC.ControlAcceso.ObjetosNegocio.CA2RazonSocial">
        </asp:ObjectDataSource>
        <br />
    
    </div>
    </form>
</body>
</html>
